package com.woniu.microworkorderserver.businessmag.service.impl;

import com.woniu.microcommonsserver.entity.InspectItemInfoEntity;
import com.woniu.microworkorderserver.businessmag.mapper.InspectItemMapper;
import com.woniu.microworkorderserver.businessmag.service.InspectItemService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class InspectItemServiceImpl implements InspectItemService {

    @Resource
    private InspectItemMapper inspectItemMapper;

    @Override
    public Long save(InspectItemInfoEntity itemInfoEntity) {
        return inspectItemMapper.save(itemInfoEntity);
    }

    @Override
    public List<InspectItemInfoEntity> findByTemplateId(long id) {
        return inspectItemMapper.findByTemplateId(id);
    }
}
